package com.yy.wga.goods.feign.api;

import com.yy.wga.common.core.dto.Result;
import com.yy.wga.goods.feign.request.FeedReq;
import com.yy.wga.goods.feign.request.LiveReq;
import com.yy.wga.goods.feign.request.TalentReq;
import com.yy.wga.goods.feign.response.FeedResp;
import com.yy.wga.goods.feign.response.LiveResp;
import com.yy.wga.goods.feign.response.TalentResp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.validation.Valid;
import java.util.List;

/**
 * 达人接口管理
 */
@FeignClient(name = "TalentFeign",
        url = "https://wga-api.xianrcj.com/api/wechat/mp/",
        path = "/api/talent/")
@RequestMapping("api/talent")
public interface TalentFeign {


    /**
     * 获取已绑定达人信息
     **/
    @PostMapping("getBindTalentList")
    Result<TalentResp.BindTalentList> getBindTalentList(@RequestBody @Valid TalentReq.GetBindTalentList req);

    /**
     * 获取短视频列表
     **/
    @PostMapping("getFeedList")
    Result<FeedResp.FeedList> getFeedList(@RequestBody @Valid FeedReq.GetFeedList req);
    /**
     * 获取短视频链接列表
     **/
    @GetMapping("getFeedUrlList")
    Result<List<String>> getFeedUrlList();


    /**
     * 获取短视频详情-跳转路径
     **/
    @PostMapping("getFeedPromotionInfo")
    Result<FeedResp.FeedPromotionInfo> getFeedPromotionInfo(@RequestBody @Valid FeedReq.GetFeedPromotionInfoReq req);


    /**
     * 获取一个直播间
     **/
    @PostMapping("getOneLive")
    Result<LiveResp.LiveInfo> getOneLive(@RequestBody @Valid LiveReq.GetOneLive req);

    /**
     * 分享直播间二维码
     **/
    @PostMapping("getLiveShareQrCode")
    Result<LiveResp.LiveShareQcCode> getLiveShareQrCode(@RequestBody @Valid LiveReq.GetLiveShareQcCode req);


}
